package shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author lzh
 * @description 用于认证和授权的token实体类,用于shiro
 * @date 2021/2/7
 */
public class JwtToken implements AuthenticationToken {
    private String tokenString;

    public JwtToken(String tokenString) {
        this.tokenString = tokenString;
    }

    @Override
    public Object getPrincipal() {
        return tokenString;
    }

    @Override
    public Object getCredentials() {
        return tokenString;
    }
}
